#include "smoke.h"
#include <stdio.h>


uint16_t Get_ADC_Value(ADC_HandleTypeDef *hadc) {
    uint16_t adc_value = 0;
    HAL_ADC_Start(hadc);
    HAL_ADC_PollForConversion(hadc, 1);
    adc_value = HAL_ADC_GetValue(hadc)* 100.0f / 4096;
    return adc_value;
} 